<!--{include file='admin/public/header.html'}-->
<script>
function del(id){
	$.dialog.confirm('你确定要删除这个消息吗？', function(){
	    //$.dialog.tips('执行确定操作');
	    $.ajax({
			url:'<!--{U str="admin/job/del"}-->',
			type:'get',
			data:{id:id},
			success:function(data){
				if(data.result){
					//alert(reslut.tip);
					location.reload(); 
				}else{
					$.dialog.alert(data.data.reason);
				}
			}
		});
	}, function(){
	    $.dialog.tips('执行取消操作');
	});
} 

</script>
        <div class="page-header">
          <h3 class="fl">管理招聘</h3>
          <div class="user_message fr"><i class="icon-wrench"></i>管理您的内容信息</div>
          <div class="cl"></div>
        </div>
        <div class="minbox">
            <form name="form1" method="post" action="">
        	<table class="table table-bordered table-striped">
            	<thead>
                	<tr>
                        <th width="5%" class="table-textcenter">ID</th>
                        <th >标题</th>
                        <th >招聘人数</th>
                        <th >创建时间</th>
                        <th width="100" class="table-textcenter">分类</th>
                        <th width="150" class="table-textcenter">操作</th>
                  </tr>
                </thead>
                <tbody>
                    <!--{foreach from=$data item=item}-->
            		<tr>
                        <td class="table-textcenter"><!--{$item.id}--></td>
                        <td><!--{$item.name}--></td>
                        <td><!--{$item.nums}--></td>
                        <td><!--{$item.createtime|date_format:"%Y-%m-%d %H:%M:%S" }--></td>
                        <td class="table-textcenter"><!--{$cate[$item.cateid].categoryname}--></td>
                        <td class="table_config">
                        <a href="<!--{U str='admin/job/editJob' id=$item.id}-->">编辑</a>
                        <a href="javascript:;" onclick="del(<!--{$item.id}-->)">删除</a>
                        </td>
                	</tr>
                    <!--{/foreach}-->
                </tbody>
            </table>   </form>
                <!--{$page}-->
        </div>
        <div class="copyright">
        </div>

 <!--{include file='admin/public/footer.html'}-->
